package org.elanfox.intellicommunity.biz.service.core.msg;

import org.elanfox.intellicommunity.biz.dto.msg.AlarmMsgDTO;
import org.elanfox.intellicommunity.biz.entity.msg.AlarmMsgPO;
import org.elanfox.intellicommunity.data.base.base.SearchableCrudService;
import org.springframework.data.domain.Page;

/**
 * @author allan
 * @version 1.0.0
 * @date 2019/12/19
 */
public interface AlarmMsgService extends SearchableCrudService<AlarmMsgPO, Long> {
    AlarmMsgDTO findLastByUser(Integer userId);

    Page<AlarmMsgPO> findByGroup(Long group, int pageIndex, int pageSize);
}
